package com.zhuangyuan.cloud.web.controller;

import com.zhuangyuan.cloud.data.service.CateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/res")
public class FileUploadController {
    @Autowired
    private CateService cateService;

    @GetMapping("/uploaded/{cateId}")
    public ModelAndView upload(@PathVariable("type")String type,@PathVariable("cateId") String cateId){
        ModelAndView mv = new ModelAndView("/res/list");

        return mv;
    }

    @PostMapping("/upload")
    public String doUpload(){

        return "";
    }
}
